function controllaVuoti(modulo, id1, mess){

	var cont=0;
	mod=document.getElementById(modulo);
	if(mod.nome.value.length==0){
		document.getElementById(id1).style.color="#C00";
		cont++;
		
	} else {
		document.getElementById(id1).style.color="#000";
	}
	
	if(cont!=0) {
		document.getElementById(mess).style.display="block";
		return false;
	} 
	document.getElementById(mess).style.display="none";
	return true;
}